﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using WmsApp.WindowControl;

namespace WmsApp.WmsService
{
    public partial class PayApplyBillDtl : IWcfState
    {
        public static PayApplyBillDtl CreatePayApplyBillDtl(string inBillID)
        {
            var r = new PayApplyBillDtl
            {
                PayApplyBillDtlID = Guid.NewGuid().ToString(),
                PayApplyBillID = inBillID,
                Amount = 0,
                ISVALID = Constant.IsValidTrue,
                WcfEntityState = System.Data.EntityState.Added
            };
            r.BindPropertyChanged();
            return r;
        }

        public void BindPropertyChanged()
        {
            this.PropertyChanged += WmsApp.EntityControl.PropertyChangedHandler.EntityObjectPropertyChanged;
        }
    }
}
